package be.nabu.vfs.provider.api;

import java.io.IOException;
import java.io.InputStream;
import java.util.Date;

public interface Readable extends Resource {
	
	public InputStream getInputStream() throws IOException;
	
	/**
	 * Should return -1 if it could not be determined
	 * @return
	 */
	public long getSize() throws IOException;
	
	/**
	 * Should return null if it could not be determined
	 * @return
	 */
	public Date getLastModified() throws IOException;
}
